import 'package:flutter/cupertino.dart';
import 'package:xin_nuo_pda/base/BaseController.dart';
import 'package:xin_nuo_pda/bean/lot_entity.dart';
import 'package:xin_nuo_pda/http/api/lot_api.dart';

class StartWorkController extends BaseController {

  LotEntity? lotEntity;
  String lotInfoId = "lotInfoId";
  String eqpId = "eqpId";
  TextEditingController eqpController = TextEditingController();

  lotInfo(String lot) async{
    // update([lotInfoId]);
    Map<String, dynamic> params = {'LOTID':lot};
    var result = await LotApi.lotInfo(canelToken,params: params);
    if(result.ok){
      lotEntity = result.data;
      update([lotInfoId]);
    }
  }
}
